/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.wiztools.te.plugin;

import javax.swing.text.EditorKit;
import org.wiztools.te.TEMod;
import org.wiztools.te.TEProcess;

/**
 *
 * @author subwiz
 */
public abstract class EditorSyntaxChanger implements TEProcess {
    
    TEMod tem;
    
    abstract EditorKit  getEditorKit();

    public void setTEMod(TEMod tem) {
        this.tem = tem;;
    }

    public void init() {
        // Do nothing
    }

    public void action() {
        tem.setEditorSyntax(getEditorKit());
    }

    public void destroy() {
        // Do nothing
    }

}
